package IO;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

class IoTest3{
    public static void showContent2(String path) throws IOException {
        FileInputStream fil=new FileInputStream(path);
        byte[] byt=new byte[1024];//new一个有1024个元素的数组
        int len = fil.read(byt);
        for (int i = 0; i <byt.length ; i++) {
            System.out.print((char) byt[i]);
        }
            fil.close();

    }


    public static void main(String[] args) throws IOException {
        showContent2("e:\\a.txt");
    }
}
